﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using AutoTest.Domain.Enums;
using SqlSugar;

namespace AutoTest.Business.Dto.Product
{
    /// <summary>
    /// 添加商品dto
    /// </summary>
    public class ProductAddDto
    {
        ///<summary>
		/// 商品名称
		///</summary>
        public string ProductName { get; set; } = string.Empty;
        ///<summary>
        /// 封面图
        ///</summary>
        public string ConverImg { get; set; } = string.Empty;
        ///<summary>
        /// 排序值
        ///</summary>
        public int ListIndex { get; set; } = 0;
        ///<summary>
        /// 简介
        ///</summary>
        public string BriefDesc { get; set; } = string.Empty;
        ///<summary>
        /// 详细说明
        ///</summary>
        public string ProdctDesc { get; set; } = string.Empty;
        ///<summary>
        /// 状态（0：无效；1：有效）
        ///</summary>
        public EnumStatus Status { get; set; } = EnumStatus.Disable;

        /// <summary>
        /// 前端地址
        /// </summary>
        public string FrontPath { get; set; } = string.Empty;
    }

    /// <summary>
    /// 编辑商品Dto
    /// </summary>
    public class ProductEditDto : ProductAddDto
    {
        /// <summary>
        /// 
        /// </summary>
        public long Id { get; set; }
    }
}
